package com.company.genealogy.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;

@Data
@TableName("tb_member_spouse")
public class MemberSpouse {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long memberId;
    private Long spouseId;
    private String relationType; // spouse-配偶、concubine-妾等
    private Integer sortOrder;   // 配偶排序，1为正室
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;
} 